class AsyncAwait {
  // 抽离成公共方法
  awaitWrap (promise) {
    return promise
      .then(data => [null, data])
      .catch(err => [err, null])
  }
}
export const asyncAwait = new AsyncAwait()
